<?php if ($comment->getUser() instanceof User): ?>
  <div class="comment <?php echo $comment->getUser()->getCredential(); ?>-comment">
<?php else: ?>
  <div class="comment">
<?php endif; ?>

<?php include_partial('global/actions', array('module' => 'comment', 'id' => $comment->getId())); ?>
  
  <div class="header">
  <?php if ($comment->getUrl()): ?>
    <?php echo link_to($comment->getDisplayName(), $comment->getUrl()); ?>
  <?php else: ?>
    <?php echo $comment->getDisplayName(); ?>
  <?php endif; ?>
  &nbsp;&nbsp;<span class="datetime">(<?php echo $comment->getDatetime(); ?>)</span>
  </div>
  
<div class="content"><?php echo $comment->getContent(); ?></div>
</div>